package hibernate.administratorAccount;

public class Employee implements java.io.Serializable{
	private Long id;
	private Salary salary;
	private EmployeeInfo info;
	private AttendenceInfo attendence;
	private Licence licence;
	
	public void setSalary(Salary s){
		salary=s;
	}
	public Salary getSalary(){
		return salary;
	}
	public void setInfo(EmployeeInfo info){
		this.info=info;
	}
	public EmployeeInfo getInfo(){
		return info;
	}
	public void setAttendence(AttendenceInfo attendence){
		this.attendence=attendence;
	}
	public AttendenceInfo getAttendence(){
		return attendence;
	}
	public void setLicence(Licence licence){
		this.licence=licence;
	}
	public Licence getLicence(){
		return licence;
	}
	
	public Long getId(){return id;}
	
	public void setId(Long id){this.id=id;}
	
	public boolean equals(Object em){
		if(!(em instanceof Employee))
			return false;
		else return ((Employee)em).id.equals(this.id) ? true : false;
	}
	
}
